﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynamicExpresso.Core.Test
{
    class Program
    {
        static void Main(string[] args)
        {

            //try {
            //    ScriptEngine engine = Python.CreateEngine();
            //    ScriptScope scope = engine.CreateScope();

            //    ScriptSource script = engine.CreateScriptSourceFromFile(@"Script.py");

            //    var result = script.Execute(scope);
            //}
            //catch (Exception e) {
            //    Console.WriteLine(e.Message);
            //}

            //Console.Read();


            var intepreter = new Interpreter();
            var param = new Parameter("x", 0x6101);
            //Console.WriteLine(intepreter.Eval("x & 6", param));
            Console.WriteLine(intepreter.Eval("x & 0x1", param));
        }
    }
}
